import {teacherInstance} from "@/api/common/util.ts";

export const getTeachCourse = () => {
    return teacherInstance.get('/user/course/teach');
}

export const getLearnCourse = () => {
    return teacherInstance.get('/user/course/learn');
}

export const getTopCourse = () => {
    return teacherInstance.get('/user/course/top');
}

export const getArchiveCourse = () => {
    return teacherInstance.get('/user/course/archive');
}

export const addCourse = (data: any) => {
    return teacherInstance.post('/course', data);
}

export const changeTop = (courseId: string) => {
    return teacherInstance.post('/course/top/' + courseId);
}

export const changeArchive = (courseId: string) => {
    return teacherInstance.post('/course/archive/' + courseId);
}